home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Sample Code / PartMaker 4.4 / PartMaker Documents / Script Runner• / Script Runner•.rsrc / dFRK_5033 < prev    next >
Encoding:
Text File  |  1995-12-12  |  1.8 KB  |  82 lines

  1. /*------------------------------------------------------------------------------
  2.     File:        ScriptRunnerAgent.idl
  3.  
  4.     Contains:    ScriptRunner Agent object interface
  5.  
  6.     Written by:    Sue Dumont
  7.  
  8.     Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  9. ------------------------------------------------------------------------------*/
  10.  
  11. #ifndef _SCRIPTRUNNERAGENT_
  12. #define _SCRIPTRUNNERAGENT_
  13.  
  14. #ifndef _ODOBJECT_
  15. #include <ODObject.idl>
  16. #endif 
  17.  
  18. #ifndef _OSAPLUGINVERS_
  19. #include "OSAPlugInVers.h"
  20. #endif
  21.  
  22. //==============================================================================
  23. // Classes defined in this interface
  24. //==============================================================================
  25.  
  26. interface    ODPart;
  27. interface    ODDraft;
  28.  
  29. //==============================================================================
  30.  
  31. #pragma somemittypes on
  32.  
  33. const ODISOStr    kOSAScriptingTool = "Apple Computer:OSA Scripting Tool";
  34.  
  35. //==============================================================================
  36. // ScriptRunner SOM Class
  37. //==============================================================================
  38.  
  39. // NOTE: We are not using the "SampleCode" module name here because SOM
  40. // doesn't allow the same module name to be defined twice, and we can't
  41. // include a .xh file generated by a SOM class with the same module name
  42. // (ie, ScriptRunner).
  43.  
  44. module Sample
  45. {
  46.     interface ScriptRunnerAgent : ODObject
  47.     {
  48.         ODExtension        AcquireScriptRunner(in ODDraft draft);
  49.     
  50.     #ifdef __SOMIDL__
  51.       implementation
  52.         {
  53.             majorversion =    somClassMajorVersion;
  54.             minorversion =    somClassMajorVersion;
  55.         
  56.             functionprefix = ScriptRunnerAgent__;
  57.             
  58.             override:
  59.                 somInit,
  60.                 somUninit;
  61.         
  62.             releaseorder:
  63.                 AcquireScriptRunner;
  64.  
  65.     #ifdef __PRIVATE__
  66.         
  67.                 ODID        fScriptRunnerID;
  68.     
  69.     #endif // __PRIVATE__
  70.  
  71.         };
  72.       
  73.     #endif __SOMIDL__
  74.     
  75.     };
  76. };
  77.  
  78. #pragma somemittypes off
  79.  
  80. #endif _SCRIPTRUNNERAGENT_
  81.  
  82.